package kr.pe.johnkim.chattingday.mobile.rest.service;

import kr.pe.johnkim.chattingday.mobile.domain.ChattingDayLog;
import kr.pe.johnkim.chattingday.mobile.rest.dao.ChattingDayLogDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * ChattingDay 로그 관련 서비스 메소드들을 구현하는 클래스 이다.
 *
 * @author : johnkim <cale9797@gmail.com / Bettersoft Inc,.>
 * @Date : 12. 5. 17
 */
public class ChattingDayLogServiceImpl implements ChattingDayLogService {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(ChattingDayLogServiceImpl.class);

    @Autowired
    private ChattingDayLogDao chattingDayLogDao = null;


    /**
     * 로그를 저장 한다.
     *
     * @param chattingDayLog
     */

    @Override
    public void registerLog(ChattingDayLog chattingDayLog) {
        logger.info("registerLog");

        chattingDayLogDao.registerLog(chattingDayLog);
    }

}
